package com.example.module_lzq_haibathree.utils;

import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;

public class SleepFocusViewModel extends ViewModel {
    //状态，1开始前，2开始后，3暂停
    private MutableLiveData<Integer> currentType;

    public MutableLiveData<Integer> getCurrentType() {
        if (currentType == null) {
            currentType = new MutableLiveData<>();
            currentType.setValue(0);
        }
        return currentType;
    }

    public void setCurrentType(int val) {
        currentType.setValue(val);
    }
}
